-
Notifications
You must be signed in to change notification settings - Fork 24
Fix Foldable1 (NonEmpty f)
instance
#39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
src/Data/NonEmpty.purs
Outdated
import Data.Ord (class Ord1) | ||
import Data.Semigroup.Foldable (class Foldable1, foldMap1) | ||
import Data.Semigroup.Foldable (foldl1) as Exports |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I get that you are exporting this so that the Data.NonEmpty
still exports foldl1
, but I wonder whether we should keep that since Foldable1
now includes that as one of its members.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See my comment on the I think other maintainers should weigh in on whether foldr1
implementation.foldr1
should still be exported by Data.NonEmpty
.
When we resolve things here, it should be merged into #38. Otherwise, that PR won't pass CI. |
I'd prefer to leave the type of the |
@hdgarrood Okay, how's this? |
Looks good to me! |
Merged in #38. Thanks! |
* Update TAG to v0.14.0-rc3; dependencies to master; psa to v0.8.0 * Add roles declarations to allow safe coercions * fix: Fix `Foldable1 NonEmptyArray` instance (requires purescript/purescript-nonempty#39) * fix: Fix `Foldable1 NonEmptyArray` instance -> swap foldl1Impl and foldr1Impl * Fix warning by removing 'kind' word in import Co-authored-by: Cyril Sobierajewicz <[email protected]> Co-authored-by: Serhii Khoma <[email protected]> Co-authored-by: JordanMartinez <[email protected]>
To be merged after #38 and purescript/purescript-tuples#39.